﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;

namespace Scrips.PlayerData
{
    public abstract class PlayerBaseMode
    { 
        /// <summary>
        /// 玩家当前状态类型
        /// </summary>
        public PlayerState PlayerCurrentStateType;
        /// <summary>
        /// 玩家脚本 通过这个对玩家进行操作
        /// </summary>
        public Player_Cc mPlayer;
        
        /// <summary>
        /// 状态初始化
        /// </summary>
        /// <param name="player"></param>
        public virtual void Init(Player_Cc player)
        {
            mPlayer = player;
        }

        /// <summary>
        /// 状态开始
        /// </summary>
        /// <param name="mParams"></param>
        public virtual void Begin(object[] mParams)
        {
            
        }

        /// <summary>
        /// 状态更新
        /// </summary>
        public virtual void Update()
        {
            
        }

        /// <summary>
        /// 状态结束
        /// </summary>
        public virtual void End()
        {
            
        }

        /// <summary>
        /// 输入控制
        /// </summary>
        public virtual void InputHandle()
        {

        }

        
    }
}